home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 January / PCWorld_2007-01_cd.bin / v cisle / autoit / autoit-v3.2.0.1-setup.exe / Examples / Helpfile / _ProcessGetName.au3 < prev    next >
Text File  |  2006-06-17  |  205b  |  8 lines

  1. #include <Process.au3>
  2.  
  3. Run("notepad.exe")
  4. WinWaitActive("Untitled - Notepad", "")
  5. $pid = WinGetProcess("Untitled - Notepad", "")
  6. $name = _ProcessGetName($pid)
  7.  
  8. MsgBox(0, "Notepad - " & $pid, $name)